Ext.define('DCApp.view.catalog.List', {
    extend: 'Ext.grid.Panel',
    alias: 'widget.cataloglist',
    
    requires: [
        'DCApp.view.catalog.ListController',
        'DCApp.view.catalog.ListModel'
    ],

    controller: 'cataloglist',
    plugins: ['gfilters'],
    viewModel: {
        type: 'cataloglist'
    },
    bind: {
        store: '{catalogs}'
    },
    header:false,
    title: 'Array Grid',

    selType: 'checkboxmodel',
    
    tbar: ['->',{
        text: '录入',
        handler: 'onNew'
    }],
    
	bubbleEvents:['viewcatalog','newcatalog'],
	
	listeners: {
        itemdblclick: 'onCatalogDblClick'
    },
    
    columns: [
              {
                  text     : '论文期刊ID',
                  dataIndex: 'id',
                  filter: 'number'
              },
              {
                  text     : '论文期刊描述',
                  dataIndex: 'catalogName',
                  filter: 'string'
              },
              {
                  text     : '论文期刊名称',
                  dataIndex: 'catalogAuther',
                  filter: 'string'
              },
              {
                  text     : '来源',
                  dataIndex: 'catalogSource',
                  filter: 'string'
              },
              {
                  text     : '出版社',
                  dataIndex: 'publishHouse',
                  filter: 'string'
              },
              {
                  text     : '日期',
                  dataIndex: 'publishDate',
                  filter: 'date'
              },
              {
                  text     : '字数',
                  dataIndex: 'wordNum',
                  filter: 'number'
              },
              {
                  text     : '页数',
                  dataIndex: 'pageNum',
                  filter: 'number'
              },
              {
                  text     : '确认(有PDF)',
                  dataIndex: 'confirmFlag',
                  filter: 'string'
              }            
        ],
    initComponent: function(){    	
    	 this.callParent();
    }
 });
